import request from '@/utils/request'


 //获取品牌数据
export const reqTradeMarkList=(page, limit) => request.get( `/admin/product/baseTrademark/${page}/${limit}`);

//添加新的品牌与修改已有的品牌数据
export const reqAddOrUpdateTradeMark = (data) => {
    //修改品牌
    if (data.id) {
        return request.put('/admin/product/baseTrademark/update', data);
    } else {
        //新增品牌
        return request.post('/admin/product/baseTrademark/save', data);
    }
}
//删除某一个品牌
export const reqDeleteTradeMark = (id)=>request.delete(`/admin/product/baseTrademark/remove/${id}`);

    

